Thanks to Lionel N. for raising the issue. It was failing to build for
Windows with:
> babl/babl-space.c:503: undefined reference to `aligned_alloc'
Windows has apparently a similar API, except that the size and alignment
parameters are inverted.
See https://msdn.microsoft.com/library/8z34s9c6.aspx
uint8_t *rgba_in_u8 = (void*)src_char;
uint8_t *rgba_out_u8 = (void*)dst_char;
+#ifndef _WIN32
float *rgb = aligned_alloc (16, sizeof(float) * 4 * samples);
+#else
+ float *rgb = _aligned_malloc (sizeof(float) * 4 * samples, 16);
+#endif
for (i = 0; i < samples; i++)
{
uint8_t *rgba_in_u8 = (void*)src_char;
uint8_t *rgba_out_u8 = (void*)dst_char;
+#ifndef _WIN32
float *rgb = aligned_alloc (16, sizeof(float) * 4 * samples);
+#else
+ float *rgb = _aligned_malloc (sizeof(float) * 4 * samples, 16);
+#endif
for (i = 0; i < samples; i++)
{